{extend name="mainadmin@layouts/base" /}
{block name="main" }

<header class="header  b-b clearfix">

    <form id="forms" class="talbe-search form-inline "  method="post" action="{:url('getList')}" >
        <div class="page-breadcrumbs">
            <ul class="breadcrumb" >
                <li>
                    <i class="fa fa-ellipsis-v"></i>
                    <strong>{$is_ban==1?'封禁':''}用户列表</strong>
                </li>
            </ul>
            <select name="status"  style="width: 130px;" data-toggle="select2"  data-notsearch="true" data-placeholder="按自定义筛选" data-chang="submit">
                <option value="0">所有用户</option>
                <option value="1" {$search['status']=='1'?'selected':''}>黑名单</option>
            </select>

            <select name="rode_id"  style="width: 130px;" data-toggle="select2"  data-notsearch="true" data-placeholder="按自定义筛选" data-chang="submit">
                <option value="-1">所有会员</option>
                <option value="all_role" {$search['roleId']=='all_role'?'selected':''}>所有身份会员</option>
                {$roleOpt|raw}
            </select>

            <input type="hidden" value="0" name="export">
            <input type="text" class="form-control input-large" value="{$search.nickname}" name="nickname" placeholder="用户昵称" data-rule-required="true" />
            <input type="text" class="form-control input-large" value="{$search.user_id}" name="user_id" placeholder="用户ID" data-rule-required="true" />
            <button class="btn btn-sm btn-default-iq" type="submit" title="搜索"><i class="fa fa-search"></i></button>
            <a href="javascript:;" onclick="ExportList()" title="导出" class="btn btn-sm btn-default fr m-t-md m-r"><i class="fa fa-file-excel-o m-r-xs"></i>导出列表</a>
            <a href="{:url('addUser')}" data-toggle="ajaxModal" title="新增会员" class="btn btn-sm btnbtn-default fr  m-t-md m-r"><i class="fa fa-plus m-r-xs"></i>新增会员</a>
        </div>
    </form>
</header>

<section class="scrollable wrapper w-f ">
    <section class="panel panel-default ">
        <div class="table-responsive " id="list_box">
            {include file="liveing/users/list" /}
        </div>
    </section>
</section>
{/block}
